package cn.edu.henu.team.table;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;

@Entity(nameInDb = "examinations")
public class examinations {

    /**
     * 主键 Long型，可以通过@Id(autoincrement = true)设置自增长。
     * 通过这个注解标记的字段必须是Long，数据库中表示它就是主键，并且默认是自增的。
     */
    @Id(autoincrement = true)
    private Long id;

    @Property(nameInDb = "question")
    private String question;
    @Property(nameInDb = "itemA")
    private String itemA;
    @Property(nameInDb = "itemB")
    private String itemB;

    @Generated(hash = 441449994)
    public examinations(Long id, String question, String itemA, String itemB) {
        this.id = id;
        this.question = question;
        this.itemA = itemA;
        this.itemB = itemB;
    }

    @Generated(hash = 1906130280)
    public examinations() {
    }

    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }

    public String getItemA() {
        return itemA;
    }

    public void setItemA(String itemA) {
        this.itemA = itemA;
    }

    public String getItemB() {
        return itemB;
    }

    public void setItemB(String itemB) {
        this.itemB = itemB;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }
}
